﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LLKanWebService.BLL;
using LLKanWebService.Model;
public partial class Register : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            UserManager usm = new UserManager();
            Users user = new Users();
            user.Account = Request["account"].ToString();
            user.Passwrod = Request["password"].ToString();
            user.NickName = Request["nickname"].ToString();
            if (usm.registerUser(user))
            {
                Session["account"] = user.Account;
                Response.Write("register successfully");
            }
            else
            {
                Response.Write("register unsuccessfully");
            }
        }
    }

}